package com.ztsoft.user.service.user;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ztsoft.user.pojo.entity.user.SysDept;
import com.ztsoft.user.pojo.vo.user.SysDeptVo;
import com.ztsoft.user.utils.Result;

public interface SysDeptService extends IService<SysDept> {

    Result<Object> queryDeptByPage(SysDept dept, Integer currentPage, Integer pageSize);

    Result<Object> queryDeptTreeSelect();

    Result<Object> addDept(SysDeptVo sysDeptVo);

    Result<Object> updateDept(SysDeptVo sysDeptVo);

    Result<Object> deleteDept(Long id);

    Result<Object> queryDeptTree();
}